package com.hhz.cloudalibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Rem
 * @Date 2020-03-17
 * @Version 1.0
 */

@RestController
//支持nacos动态刷新
@RefreshScope
public class ConfigClientController {

    @Value("${config.info}")
    private String info;


    @GetMapping("/client/info")
    public String getInfo() {
        return info;
    }

}
